import Axios from "./base";

// 查询获取用户列表
export const getUsersApi = (params) =>
  Axios.get("/users", {
    params,
  });

// 修改用户状态
export const changeStateApi = (uId, type) =>
  Axios.put(`users/${uId}/state/${type}`);

// 根据账户的id查询账户的信息
export const queryUserApi = (id) => Axios.get(`/users/${id}`);

// 编辑用户信息
export const resetUserApi = (id, data) => Axios.put(`/users/${id}`, data);

// 添加账户
export const addUser = (data) => Axios.post("/users", data);
